﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeBehind="NewUser.aspx.cs" Inherits="MyHospital.web.MyHospital.NewUser" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/12.png" Width="723px" Height="441px" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <section class="right" style=" width:440px">
    <table>
          <tr>
            <td class="tdcenter" colspan="2">注册</td>
          </tr>
          <tr>
            <td class="auto-style1">姓名:</td>
            <td>
              <asp:TextBox ID="txtName" runat="server" Height="20px" Width="183px"></asp:TextBox></td>
            <td>
              <asp:RequiredFieldValidator ControlToValidate="txtName" Display="Dynamic" ForeColor="Red" 
                  ID="rfvName" runat="server" ErrorMessage="必填"></asp:RequiredFieldValidator>
            </td>
          </tr>
         <tr>
            <td class="auto-style1">昵称:</td>
            <td>
              <asp:TextBox ID="txtNickName" runat="server" Height="20px" Width="183px"></asp:TextBox></td>
            <td>
              <asp:RequiredFieldValidator ControlToValidate="txtNickName" Display="Dynamic" ForeColor="Red" 
                  ID="rfvNickName" runat="server" ErrorMessage="必填"></asp:RequiredFieldValidator>
            </td>
          </tr>
        <tr>
            <td class="auto-style1">性别:</td>
            <td>
              <asp:RadioButton ID="RadioButton1" Text="男" runat="server" GroupName="Sex" />
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
              <asp:RadioButton ID="RadioButton2" Text="女" runat="server" GroupName="Sex"/>
            </td>
          </tr>
          <tr>
            <td class="auto-style1">Email:</td>
            <td>
              <asp:TextBox ID="txtEmail" runat="server" Height="20px" Width="183px"></asp:TextBox></td>
            <td>
              <asp:RequiredFieldValidator ControlToValidate="txtEmail" Display="Dynamic" ForeColor="Red" 
                  ID="rfvEmail" runat="server" ErrorMessage="必填">
              </asp:RequiredFieldValidator>
                 <asp:RegularExpressionValidator ID="revEmail" runat="server" ErrorMessage="邮箱格式不正确！" 
                     ControlToValidate="txtEmail" Display="Dynamic" ForeColor="Red" 
                     ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">
              </asp:RegularExpressionValidator>
            </td>
          </tr>
        <tr>
            <td class="auto-style1">手机:</td>
            <td>
              <asp:TextBox ID="txtPhone" runat="server" Height="20px" Width="183px"></asp:TextBox></td>
            <td>
              <asp:RequiredFieldValidator ControlToValidate="txtPhone" Display="Dynamic" ForeColor="Red" 
                  ID="rfvPhone" runat="server" ErrorMessage="必填"></asp:RequiredFieldValidator>
              <asp:RegularExpressionValidator ID="revPhone" runat="server" ErrorMessage="手机号码格式不正确！" 
                  ControlToValidate="txtPhone" Display="Dynamic" ForeColor="Red" ValidationExpression="\d{11}">
              </asp:RegularExpressionValidator>
            </td>
          </tr>  
        <tr>
            <td class="auto-style1">地址:</td>
           <td>
              <asp:TextBox ID="TextBox1" runat="server" Height="20px" Width="183px"></asp:TextBox></td>
          </tr>
        <tr>
            <td class="auto-style1">身份证:</td>
            <td>
              <asp:TextBox ID="txtIDCard" runat="server" Height="20px" Width="183px"></asp:TextBox></td>
            <td>
              <asp:RequiredFieldValidator ControlToValidate="txtIDCard" Display="Dynamic" ForeColor="Red" 
                  ID="rfvIDCard" runat="server" ErrorMessage="必填"></asp:RequiredFieldValidator>
              <asp:RegularExpressionValidator ID="revIDCard" runat="server" ErrorMessage="身份证号不正确！" 
                  ControlToValidate="txtIDCard" Display="Dynamic" ForeColor="Red" 
                  ValidationExpression="^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{4}$">
              </asp:RegularExpressionValidator>
            </td>
          </tr>
          <tr>
            <td class="auto-style1">密码:</td>
            <td>
              <asp:TextBox ID="txtPwd" runat="server" TextMode="Password" Height="20px" Width="183px"></asp:TextBox></td>
            <td>
              <asp:RequiredFieldValidator ControlToValidate="txtPwd" Display="Dynamic" ForeColor="Red" ID="rfvPwd" 
                  runat="server" ErrorMessage="必填"></asp:RequiredFieldValidator>
            </td>
          </tr>
          <tr>
            <td class="auto-style1">确认密码:</td>
            <td>
              <asp:TextBox ID="txtPwdAgain" runat="server" TextMode="Password" Height="20px" Width="183px"></asp:TextBox></td>
            <td>
              <asp:RequiredFieldValidator ControlToValidate="txtPwdAgain" Display="Dynamic" ForeColor="Red" 
                  ID="rfvPwdAgain" runat="server" ErrorMessage="必填"></asp:RequiredFieldValidator>
                 <asp:CompareValidator ControlToValidate="txtPwdAgain" ControlToCompare="txtPwd" Display="Dynamic" 
                     ForeColor="Red" ID="cvPwd" runat="server" ErrorMessage="2次密码不一致！"></asp:CompareValidator>
            </td>
          </tr>           
          <tr>
            <td ><a href="Login.aspx">我要登录</a></td>
            <td class="tdright" colspan="2">
              <asp:Button ID="btnReg" runat="server" Text="立即注册" OnClick="btnReg_Click" Width="73px" />
            </td>
             <td>
              <asp:Label ID="lblMsg" runat="server" ForeColor="Red"></asp:Label></td>
          </tr>
 
        </table>
        </section>
        <script src="../Scripts/city.js"></script>
        <script src="../Scripts/method.js"></script>
    <style>
        .right {
            width:440px;
            height:441px;
            border:1px solid #666688;
            text-align:center;
            padding-left:50px;
        }
        .right tr {
            height:40px;
            line-height:20px;
        }
        
        
    </style>
</asp:Content>
